package com.zoe.onelink.logging.trace.zipkin.reporter;

import com.zoe.onelink.logging.trace.zipkin.util.ZipkinSpanUtil;
import lombok.extern.slf4j.Slf4j;
import zipkin2.Span;
import zipkin2.reporter.AsyncReporter;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2021</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2021-09-06
 */
@Slf4j
public class SpanLogReporter extends AsyncReporter<Span> {

    @Override
    public void flush() {
        // ignore
    }

    @Override
    public void close() {
        // ignore
    }

    @Override
    public void report(Span span) {
        ZipkinSpanUtil.logSpan(span);
    }

}
